-- GENERATED SPELL FOR [Kor'kron Rider] --


function spell0_19364(pUnit, Event) --@Dismounting Blast,n/a--
pUnit:FullCastSpellOnTarget(18396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19364', 292, 1)
end

function spell1_19364(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19364', 5305, 1)
end

function spell2_19364(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19364', 2332, 1)
end

function Sorts_19364(pUnit, Event)
local choix_sorts_19364 = math.random(0, 2)
if choix_sorts_19364 == 0 then
pUnit:RegisterEvent('spell0_19364', 1, 1)
end
if choix_sorts_19364 == 1 then
pUnit:RegisterEvent('spell1_19364', 1, 1)
end
if choix_sorts_19364 == 2 then
pUnit:RegisterEvent('spell2_19364', 1, 1)
end
end

function mob19364_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19364', math.random(1500, 3000), 1)
end

function mob19364_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19364_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19364_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19364, 1, 'mob19364_Action')
RegisterUnitEvent(19364, 2, 'mob19364_Leave')
RegisterUnitEvent(19364, 3, 'mob19364_Kill')
RegisterUnitEvent(19364, 4, 'mob19364_Die')
